package com.learn.template;

public class run {
    public static void main(String[] args) {
        Man human = new Man();
        // 通过修改子类的属性来影响父类的返回值，这就是钩子函数的用法
        human.setHasBaby(true);
        human.init();

        Human human2 = new Woman();
        human2.init();
    }
}
